<?php
/**
* 
*/
ini_set("display_errors","on");
class Log extends Common
{
	private $now;
	private $file;
	function __construct()
	{
		# code...
		parent::__construct();
	}
	public function saveLog($log){
		$file = dirname(__DIR__)."/operatlog/".date('Ymd').".log";
	    echo $file;
		$now = date("Y-m-d H:i:s");
		//echo $now;
		var_dump(file_exists($file));
		if (!file_exists($file)) {
			# code...
			echo 111;
			var_dump(touch($file));
			//chmod($file,0777);
		}
		//var_dump(file_exists($file));
	}
}